﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 用户会员表
    /// </summary>
    [Table("ums_member")]
    public class UmsMemberEntity : BaseEntity
    {
        /// <summary>
        /// 会员等级表id
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? member_level_id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? userid { get; set; }
        /// <summary>
        /// 用户昵称
        /// </summary>
        public string nickname { get; set; }
        /// <summary>
        /// 微信openid
        /// </summary>
        public string openid { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? create_time { get; set; }
        /// <summary>
        /// 性别：0->未知；1->男；2->女
        /// </summary>
        public int gender { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? birthday { get; set; }
        /// <summary>
        /// 所在城市
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 职业
        /// </summary>
        public string job { get; set; }
        /// <summary>
        /// 个性签名
        /// </summary>
        public string personalized_signature { get; set; }
        /// <summary>
        /// 用户来源
        /// </summary>
        public string source_type { get; set; }
        /// <summary>
        /// 积分
        /// </summary>
        public int integration { get; set; }
        /// <summary>
        /// 成长值
        /// </summary>
        public int growth { get; set; }
        /// <summary>
        /// 剩余抽奖次数
        /// </summary>
        public int luckey_count { get; set; }
        /// <summary>
        /// 历史积分数量
        /// </summary>
        public int history_integration { get; set; }

        public float money { get; set; }
    }
}
